package com.hjh.pro.annotation1.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@Configuration
@PropertySource("classpath:test.properties")
@ConfigurationProperties(prefix="demo")
@Component
public class InitProperties {

    private String user;
    private List<Bean1> list;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public List<Bean1> getList() {
        return list;
    }

    public void setList(List<Bean1> list) {
        this.list = list;
    }
}
